/**
 * jQuery.support.transition
 * to verify that CSS3 transition is supported (or any of its browser-specific implementations)
 * 
 * @see	https://gist.github.com/373874
 * 
 * Modifications by Tim Kurvers <tim@hyper.no>
 */
$.support.transition = (function() {
	var prefixes = ['Webkit', 'Moz', 'Ms', 'O'];
	
	function transition(css) {
		var css = css || false;
		var body = document.body || document.documentElement;
		var s = body.style;
		
		if(s.transition !== undefined) {
			return (css) ? 'transition' : true;
		}
		
		for(var prefix in prefixes) {
			var prop = prefixes[prefix] + 'Transition';
			if(s[prop] !== undefined) {
				return (css) ? '-' + prefixes[prefix].toLowerCase() + '-transition' : true;
			}
		}
		
		return (css) ? null : false;
	}
	
	return transition;
})();
